package com.sixfoot.facade.role;

import com.sixfoot.domain.Permission;
import com.sixfoot.facade.user.UserVo;
import com.sixfoot.foundation.persistence.UUIDBaseModel;

import java.util.List;
import java.util.Set;

public class RoleDto extends UUIDBaseModel {
	private String name;
	// 角色代码
	private String code;
	private String description;
	private Set<Permission> perms;//简单的对象交给Dozer转换
	private Set<String> permIds;
	/**用户角色*/
	private List<UserVo> users;
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Set<Permission> getPerms() {
		return perms;
	}
	public void setPerms(Set<Permission> perms) {
		this.perms = perms;
	}
	public Set<String> getPermIds() {
		return permIds;
	}
	public void setPermIds(Set<String> permIds) {
		this.permIds = permIds;
	}
//	public List<UserVo> getUsers() {
//		return users;
//	}
//	public void setUsers(List<UserVo> users) {
//		this.users = users;
//	}
	public List<UserVo> getUsers() {
		return users;
	}
	public void setUsers(List<UserVo> users) {
		this.users = users;
	}

	@Override
	public String toString() {
		return this.getName();
	}
}
